package com.sc.nft.admin.request;

import com.sc.nft.enums.PointsExchangeCollectionConsumeTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class FeignPointApplyExchangeRequest {

    @ApiModelProperty(value = "藏品id")
    @NotNull(message = "市值id不能为空")
    private Long collectionId;

    @ApiModelProperty(value = "兑换数量")
    @NotNull(message = "兑换数量不能为空")
    private Integer applyNum;

    @ApiModelProperty(value = "接收账号")
    @NotNull(message = "接收账号不能为空")
    private Long toUserId;

    @ApiModelProperty(value = "daoId")
    @NotNull(message = "daoId不能为空")
    private Long daoId;

    @ApiModelProperty(value = "需要的燃料")
    @NotNull(message = "燃料不能为空")
    private BigDecimal needPoints;


    @ApiModelProperty(value = "积分id")
    private Long pointsId;

    /**
     * 消耗类型
     */
    private PointsExchangeCollectionConsumeTypeEnum consumeType;

}
